<% for (var js in htmlWebpackPlugin.files.js) { %>
<% const path = htmlWebpackPlugin.files.js[js].replace(/^\.\./,'dist'); %>
<script src="<?php $this->options->themeUrl('<%= path %>'); ?>"></script>
<% } %>